<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>系统管理</title>
    <link rel="stylesheet" type="text/css" media="all" href="/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/global.css"/>
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/myJs.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="/css/CaseManager.css"/>

</head>
<body>
<div class="layui-col-xs-offset11">
    <div id="tuichu1"></div>
</div>
<!--主内容-->
<div class="layui-row layui-col-space12">
    <div class="layui-col-md-offset1" ><a href="/plateForm/homepage" onclick="backHome()" style="color: #337ab7">返回首页</a></div>

</div>

<div class="layui-container" style="margin-top: 60px; height: 100% ;width: 2000px">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend style="font-size: 18px; font-weight: 600">管理入口</legend>
    </fieldset>

    <div class="layui-row layui-col-space10">
        <div class="layui-col-md3">
            <div class="item">
                <div class="item-inner">
                    <div class="item-hd">
                        <a href="javascript:void(0)" onclick="ziyaun()" target="_blank" class="item-icon"><img src="/images/poodle.png" /></a>
                        <h3><a href="javascript:void(0)" onclick="ziyaun()" target="_blank">资源管理</a></h3>
                    </div>

                    <div class="item-bd">
                        <div class="item-desc" title="文章">上传的文件...</div>
                    </div>
                    <div class="item-ft">
                        <span class="item-link"></span>
                        <a class="item-btn" href="javascript:void(0)" onclick="ziyaun()" target="_blank"><button class="layui-btn layui-btn-normal layui-btn-xs">进入</button></a>
                    </div>
                </div>
            </div>
        </div>

        <div id="master"></div>

    </div>
    <div class="layui-row layui-col-space10">

    </div>


</div>

</body>
<script>
    function zhuxiao(){
        var storage = window.localStorage;
        storage.clear();
    }
    function backHome(){
        loadPage("/plateForm/homepage")
    }
    function ziyaun(){
        loadPageWithBlank("/plateForm/Staff_ResourseList");
    }
    function log(){
        loadPageWithBlank("/plateForm/Staff_EmployeeLog");
    }
    function yuangong(){
        loadPageWithBlank("/plateForm/Staff_EmployeeList");
    }
    $(function () {
        var storage = window.localStorage;
        var result ='<br/><br/><div>'+storage.username+'    <a href="/plateForm/login" onclick="zhuxiao()" style="color: #1E9FFF;font-weight:bold">( 注销 ) </a>'+'</div>';
        $('#tuichu1').append(result);
        if (storage.power == "master"){
            var master= '<div class="layui-col-md3"><div class="item"><div class="item-inner"><div class="item-hd"><a href="javascript:void(0)" onclick="yuangong()" target="_blank" class="item-icon"><img src="/images/tapcode.png" /></a><h3><a href="javascript:void(0)" onclick="yuangong()" target="_blank">用户管理</a></h3></div><div class="item-bd"><div class="item-desc" title="用户管理">用户管理...</div></div><div class="item-ft"><span class="item-link"></span><a class="item-btn" href="javascript:void(0)" onclick="yuangong()" target="_blank"><button class="layui-btn layui-btn-normal layui-btn-xs">进入</button></a></div></div></div></div><div class="layui-col-md3"><div class="item"><div class="item-inner"><div class="item-hd"><a href="javascript:void(0)" onclick="yuangong()" target="_blank" class="item-icon"><img src="/images/anonymous.png" /></a><h3><a href="javascript:void(0)" onclick="log()" target="_blank">操作日志</a></h3></div><div class="item-bd"><div class="item-desc" title="用户管理">用户操作日志</div></div><div class="item-ft"><span class="item-link"></span><a class="item-btn" href="javascript:void(0)" onclick="log()" target="_blank"><button class="layui-btn layui-btn-normal layui-btn-xs">进入</button></a></div></div></div></div>';
            $('#master').append(master);

        }
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });
        var it =JSON.parse(localStorage.getItem("username"))
        if (it == null){
            loadPage("/plateForm/login")
        }
    })


</script>

</html>